package com.emall.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.http.codec.ServerCodecConfigurer;

/**
 * @author YuanShijia
 * @version 1.0.0
 * @ClassName EmallOrderApplication.java
 * @Description TODO
 * @createTime 2020年04月04日 16:50:00
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableRabbit
public class EmallOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(EmallOrderApplication.class, args);
    }
    @Bean
    public ServerCodecConfigurer serverCodecConfigurer() {
        return ServerCodecConfigurer.create();
    }
}
